package cn.minant.rpc;

public class Client {

    public static void main(String[] args) {
        RpcProxyClient client = new RpcProxyClient();
        HelloService helloService = client.clientProxy(HelloService.class, "localhost", 8080);
        User user = new User();
        user.setAge(18);
        user.setName("tinu");
        System.out.println(helloService.sayHello());
        System.out.println(helloService.save(user));
    }
}
